//
//  CLTempViewController.swift
//  SinaCaoliang
//
//  Created by 曹亮 on 16/10/22.
//  Copyright © 2016年 曹亮. All rights reserved.
//

import UIKit

class CLTempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        setupUI()
    }
    // MARK: - 设置视图
    private func setupUI(){

        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "PUSH", titleColor: UIColor.darkGray, target: self, action: #selector(pushBtnClick))

        navigationItem.title = "第\(navigationController?.childViewControllers.count ?? 0)个控制器"

    }


    /// push按钮方法
    func pushBtnClick() -> Void {

        let  vc  = CLTempViewController()
        navigationController?.pushViewController(vc, animated: true)

    }
    


    
    
}
